package com.guaika.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guaika.reggie.common.ResultMessage;
import com.guaika.reggie.entity.ShoppingCart;

import java.util.List;

/**
 * @author GuaiKa
 */
public interface ShoppingCartService extends IService<ShoppingCart> {
    /***
     * 添加购物车
     * @param shoppingCart
     * @return
     */
    ResultMessage<ShoppingCart> shoppingSave(ShoppingCart shoppingCart);

    /***
     * 购物车数据
     * @return
     */
    ResultMessage<List<ShoppingCart>> shoppingList();

    /***
     * 删减购物车菜品或套餐份数
     * @param shoppingCart
     * @return
     */
    ResultMessage<ShoppingCart> shoppingSub(ShoppingCart shoppingCart);

    /***
     * 清除购物车
     * @return
     */
    ResultMessage<String> shoppingClean();
}
